package com.huawei.hms.support.api.pay;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.pay.HwWalletInoResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiPayApiImpl$i extends PendingResultImpl<HwWalletInfoResult, HwWalletInoResp> {
    public final /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        HwWalletInoResp hwWalletInoResp = (HwWalletInoResp) iMessageEntity;
        if (hwWalletInoResp == null || hwWalletInoResp.getCommonStatus() == null) {
            HMSLog.e("HuaweiPayApiImpl", "HwWalletInfoResult resp is null");
            return null;
        }
        Status commonStatus = hwWalletInoResp.getCommonStatus();
        HMSLog.i("HuaweiPayApiImpl", "HwWalletInoResp resp code :" + commonStatus.getStatusCode());
        HMSLog.i("HuaweiPayApiImpl", "HwWalletInoResp resp msg :" + commonStatus.getStatusMessage());
        Result hwWalletInfoResult = new HwWalletInfoResult();
        hwWalletInfoResult.setStatus(new Status(commonStatus.getStatusCode(), commonStatus.getStatusMessage(), commonStatus.getResolution()));
        hwWalletInfoResult.setResult(hwWalletInoResp.getResult());
        return hwWalletInfoResult;
    }

    public HuaweiPayApiImpl$i(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }
}
